inherited dtmsc_DrawMaster: Tdtmsc_DrawMaster
  OldCreateOrder = True
  Left = 661
  Top = 270
  Height = 395
  Width = 688
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from  V_sc_DrawMaster where 0=1'
    object adsMasterBillID: TStringField
      DisplayLabel = #21333#25454'ID'
      FieldName = 'BillID'
    end
    object adsMasterBillNo: TStringField
      DisplayLabel = #21333#25454#32534#21495
      FieldName = 'BillNo'
    end
    object adsMasterBillDate: TDateTimeField
      DisplayLabel = #21333#25454#26085#26399
      FieldName = 'BillDate'
    end
    object adsMasterBillType: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'BillType'
    end
    object adsMasterBillFlow: TWordField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'BillFlow'
    end
    object adsMasterDrawType: TStringField
      DisplayLabel = #30003#39046#26041#24335'ID'
      FieldName = 'DrawType'
    end
    object adsMasterDrawTypeName: TStringField
      DisplayLabel = #30003#39046#26041#24335
      FieldName = 'DrawTypeName'
      Size = 50
    end
    object adsMasterDrawUseType: TStringField
      DisplayLabel = #39046#26009#31867#22411'ID'
      FieldName = 'DrawUseType'
    end
    object adsMasterDrawUseTypeName: TStringField
      DisplayLabel = #39046#26009#31867#22411
      FieldName = 'DrawUseTypeName'
      Size = 50
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #37096#38376'ID'
      FieldName = 'DeptID'
    end
    object adsMasterStockID: TStringField
      DisplayLabel = #39046#26009#20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterStockName: TStringField
      DisplayLabel = #39046#26009#20179#24211
      FieldName = 'StockName'
      Size = 50
    end
    object adsMasterInOutType: TStringField
      DisplayLabel = #30003#35831#31867#22411'ID'
      FieldName = 'InOutType'
    end
    object adsMasterInOutTypeName: TStringField
      DisplayLabel = #30003#35831#31867#22411
      FieldName = 'InOutTypeName'
      Size = 50
    end
    object adsMasterSourceBillNo: TStringField
      DisplayLabel = #28304#21333#32534#21495
      FieldName = 'SourceBillNo'
    end
    object adsMasterDrawDeptID: TStringField
      DisplayLabel = #39046#26009#37096#38376'ID'
      FieldName = 'DrawDeptID'
    end
    object adsMasterDrawDeptName: TStringField
      DisplayLabel = #39046#26009#37096#38376
      FieldName = 'DrawDeptName'
      Size = 50
    end
    object adsMasterDrawDeptFullName: TStringField
      DisplayLabel = #39046#26009#37096#38376#20840#31216
      FieldName = 'DrawDeptFullName'
      Size = 100
    end
    object adsMasterStorager: TStringField
      DisplayLabel = #20179#31649
      FieldName = 'Storager'
    end
    object adsMasterDrawer: TStringField
      DisplayLabel = #39046#26009#20154
      FieldName = 'Drawer'
    end
    object adsMasterCheckMan: TStringField
      DisplayLabel = #35201#27714#23457#26680#20154
      FieldName = 'CheckMan'
    end
    object adsMasterCheckManName: TStringField
      DisplayLabel = #35201#27714#23457#26680#20154#21517#31216
      FieldName = 'CheckManName'
    end
    object adsMasterReviewMan: TStringField
      DisplayLabel = #35201#27714#22797#23457#20154
      FieldName = 'ReviewMan'
    end
    object adsMasterReviewManName: TStringField
      DisplayLabel = #35201#27714#22797#23457#20154#21517#31216
      FieldName = 'ReviewManName'
    end
    object adsMasterApproveMan: TStringField
      DisplayLabel = #35201#27714#23457#25209#20154
      FieldName = 'ApproveMan'
    end
    object adsMasterApproveManName: TStringField
      DisplayLabel = #35201#27714#23457#25209#20154#21517#31216
      FieldName = 'ApproveManName'
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterRes_Checker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldKind = fkLookup
      FieldName = 'Res'#31'_Checker'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'Checker'
      Lookup = True
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterHasReview: TBooleanField
      DisplayLabel = #22797#23457#21542
      FieldName = 'HasReview'
    end
    object adsMasterReviewer: TStringField
      DisplayLabel = #22797#23457#20154
      FieldName = 'Reviewer'
    end
    object adsMasterReviewTime: TDateTimeField
      DisplayLabel = #22797#23457#26102#38388
      FieldName = 'ReviewTime'
    end
    object adsMasterHasApprove: TBooleanField
      DisplayLabel = #23457#25209#21542
      FieldName = 'HasApprove'
    end
    object adsMasterApprover: TStringField
      DisplayLabel = #23457#25209#20154
      FieldName = 'Approver'
    end
    object adsMasterApproveTime: TDateTimeField
      DisplayLabel = #23457#25209#26102#38388
      FieldName = 'ApproveTime'
    end
    object adsMasterApproveFinished: TBooleanField
      DisplayLabel = #23457#25209#27969#31243#23436#25104#21542
      FieldName = 'ApproveFinished'
    end
    object adsMasterWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      Tag = 1
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      Tag = 1
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from  sc_DrawMaster'
    object adsMasterEditBillID: TStringField
      DisplayLabel = #21333#25454'ID'
      FieldName = 'BillID'
    end
    object adsMasterEditBillNo: TStringField
      DisplayLabel = #21333#25454#32534#21495
      FieldName = 'BillNo'
    end
    object adsMasterEditBillDate: TDateTimeField
      DisplayLabel = #21333#25454#26085#26399
      FieldName = 'BillDate'
    end
    object adsMasterEditBillType: TStringField
      DisplayLabel = #21333#25454#31867#22411
      FieldName = 'BillType'
    end
    object adsMasterEditBillcategory: TStringField
      DisplayLabel = #21333#25454#31867#21035
      FieldName = 'Billcategory'
    end
    object adsMasterEditBillFlow: TWordField
      DisplayLabel = #28304#21333#31867#22411
      FieldName = 'BillFlow'
    end
    object adsMasterEditres_BillFlowName: TStringField
      DisplayLabel = #28304#21333#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_BillFlowName'
      LookupDataSet = res_DrawBillFlow
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'BillFlow'
      Lookup = True
    end
    object adsMasterEditDrawType: TStringField
      DisplayLabel = #30003#39046#26041#24335
      FieldName = 'DrawType'
    end
    object adsMasterEditDrawUseType: TStringField
      DisplayLabel = #38656#27714#31867#22411
      FieldName = 'DrawUseType'
    end
    object adsMasterEditChgType: TStringField
      DisplayLabel = #25442#26009#26041#24335
      FieldName = 'ChgType'
    end
    object adsMasterEditDrawDeptID: TStringField
      DisplayLabel = #39046#26009#37096#38376'ID'
      FieldName = 'DrawDeptID'
    end
    object adsMasterEditDeptID: TStringField
      DisplayLabel = #37096#38376'ID'
      FieldName = 'DeptID'
    end
    object adsMasterEditStockID: TStringField
      DisplayLabel = #20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterEditInOutType: TStringField
      DisplayLabel = #30003#35831#31867#22411
      FieldName = 'InOutType'
    end
    object adsMasterEditSourceBillNo: TStringField
      DisplayLabel = #28304#21333#32534#21495
      FieldName = 'SourceBillNo'
    end
    object adsMasterEditStorager: TStringField
      DisplayLabel = #20179#31649
      FieldName = 'Storager'
    end
    object adsMasterEditDrawer: TStringField
      DisplayLabel = #39046#26009#20154
      FieldName = 'Drawer'
    end
    object adsMasterEditMaxBillDetailNo: TIntegerField
      DisplayLabel = #26126#32454#26368#22823#27969#27700#21495
      FieldName = 'MaxBillDetailNo'
    end
    object adsMasterEditCheckMan: TStringField
      DisplayLabel = #35201#27714#23457#26680#20154
      FieldName = 'CheckMan'
    end
    object adsMasterEditCheckManName: TStringField
      DisplayLabel = #35201#27714#23457#26680#20154#21517#31216
      FieldName = 'CheckManName'
    end
    object adsMasterEditReviewMan: TStringField
      DisplayLabel = #35201#27714#22797#23457#20154
      FieldName = 'ReviewMan'
    end
    object adsMasterEditReviewManName: TStringField
      DisplayLabel = #35201#27714#22797#23457#20154#21517#31216
      FieldName = 'ReviewManName'
    end
    object adsMasterEditApproveMan: TStringField
      DisplayLabel = #35201#27714#23457#25209#20154
      FieldName = 'ApproveMan'
    end
    object adsMasterEditApproveManName: TStringField
      DisplayLabel = #35201#27714#23457#25209#20154#21517#31216
      FieldName = 'ApproveManName'
    end
    object adsMasterEditHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditRes_Checker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldKind = fkLookup
      FieldName = 'Res'#31'_Checker'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'Checker'
      Lookup = True
    end
    object adsMasterEditHasReview: TBooleanField
      DisplayLabel = #22797#23457#21542
      FieldName = 'HasReview'
    end
    object adsMasterEditReviewer: TStringField
      DisplayLabel = #22797#23457#20154
      FieldName = 'Reviewer'
    end
    object adsMasterEditReviewTime: TDateTimeField
      DisplayLabel = #22797#23457#26102#38388
      FieldName = 'ReviewTime'
    end
    object adsMasterEditHasApprove: TBooleanField
      DisplayLabel = #23457#25209#21542
      FieldName = 'HasApprove'
    end
    object adsMasterEditApprover: TStringField
      DisplayLabel = #23457#25209#20154
      FieldName = 'Approver'
    end
    object adsMasterEditApproveTime: TDateTimeField
      DisplayLabel = #23457#25209#26102#38388
      FieldName = 'ApproveTime'
    end
    object adsMasterEditApproveFinished: TBooleanField
      DisplayLabel = #23457#25209#27969#31243#23436#25104#21542
      FieldName = 'ApproveFinished'
    end
    object adsMasterEditWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier: TStringField
      Tag = 1
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime: TDateTimeField
      Tag = 1
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
    object adsMasterEditres_Storager: TStringField
      DisplayLabel = #20179#31649
      FieldKind = fkLookup
      FieldName = 'res_Storager'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'Storager'
      Size = 10
      Lookup = True
    end
    object adsMasterEditres_Drawer: TStringField
      DisplayLabel = #39046#26009#20154
      FieldKind = fkLookup
      FieldName = 'res_Drawer'
      LookupDataSet = res_Employee
      LookupKeyFields = 'EmpID'
      LookupResultField = 'EmpName'
      KeyFields = 'Drawer'
      Size = 10
      Lookup = True
    end
    object adsMasterEditres_StoreName: TStringField
      DisplayLabel = #20179#24211
      FieldKind = fkLookup
      FieldName = 'res_StockName'
      LookupDataSet = res_Stock
      LookupKeyFields = 'StockID'
      LookupResultField = 'StockName'
      KeyFields = 'StockID'
      Lookup = True
    end
    object adsMasterEditres_DeptName: TStringField
      DisplayLabel = #39046#26009#37096#38376
      FieldKind = fkLookup
      FieldName = 'res_DeptName'
      LookupDataSet = res_Department
      LookupKeyFields = 'DeptID'
      LookupResultField = 'DeptName'
      KeyFields = 'DrawDeptID'
      Size = 100
      Lookup = True
    end
    object adsMasterEditres_DeptFullName: TStringField
      DisplayLabel = #39046#26009#37096#38376#20840#31216
      FieldKind = fkLookup
      FieldName = 'res_DeptFullName'
      LookupDataSet = res_Department
      LookupKeyFields = 'DeptID'
      LookupResultField = 'DeptFullName'
      KeyFields = 'DrawDeptID'
      Size = 100
      Lookup = True
    end
    object adsMasterEditres_DrawTypeName: TStringField
      DisplayLabel = #30003#39046#26041#24335
      FieldKind = fkLookup
      FieldName = 'res_DrawTypeName'
      LookupDataSet = res_DrawType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'DrawType'
      Lookup = True
    end
    object adsMasterEditres_DrawUseTypeName: TStringField
      DisplayLabel = #39046#26009#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_DrawUseTypeName'
      LookupDataSet = res_DrawUseType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'DrawUseType'
      Lookup = True
    end
    object adsMasterEditres_InOutTypeName: TStringField
      DisplayLabel = #30003#35831#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_InOutTypeName'
      LookupDataSet = res_InOutType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'InOutType'
      Size = 50
      Lookup = True
    end
  end
  object adsDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    OnCalcFields = adsDetailCalcFields
    OnNewRecord = adsDetailNewRecord
    CommandText = 'Select * from sc_DrawDetail where 0=1'
    Parameters = <>
    Left = 160
    Top = 32
    object adsDetailID: TStringField
      FieldName = 'ID'
    end
    object adsDetailBillID: TStringField
      Tag = 2
      DisplayLabel = #20851#32852'ID'
      FieldName = 'BillID'
    end
    object adsDetailBillDetailNo: TStringField
      DisplayLabel = #26126#32454#32534#21495
      FieldName = 'BillDetailNo'
    end
    object adsDetailSourceBillDetailID: TStringField
      DisplayLabel = #28304#21333#26126#32454'ID'
      FieldName = 'SourceBillDetailID'
    end
    object adsDetailSourceBillDetailNo: TStringField
      DisplayLabel = #28304#21333#26126#32454#32534#21495
      FieldName = 'SourceBillDetailNo'
    end
    object adsDetailProcessID: TStringField
      DisplayLabel = #31867#22411'ID'
      FieldName = 'ProcessID'
    end
    object adsDetailres_ProcessName: TStringField
      DisplayLabel = #31867#22411
      FieldKind = fkLookup
      FieldName = 'res_ProcessName'
      LookupDataSet = res_StuffProcessType
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'ProcessID'
      Lookup = True
    end
    object adsDetailSupplyID: TStringField
      DisplayLabel = #20379#24212#21830'ID'
      FieldName = 'SupplyID'
    end
    object adsDetailres_SupplyName: TStringField
      DisplayLabel = #20379#24212#21830
      FieldKind = fkLookup
      FieldName = 'res_SupplyName'
      LookupDataSet = res_Supply
      LookupKeyFields = 'SupplyID'
      LookupResultField = 'SupplyShortName'
      KeyFields = 'SupplyID'
      Size = 100
      Lookup = True
    end
    object adsDetailStuffType: TStringField
      DisplayLabel = #31867#22411
      FieldName = 'StuffType'
    end
    object adsDetailStuffID: TStringField
      Tag = 2
      DisplayLabel = #29289#26009'ID'
      FieldName = 'StuffID'
    end
    object adsDetailStuffCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'StuffCode'
      Size = 50
    end
    object adsDetailStuffName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'StuffName'
      Size = 100
    end
    object adsDetailSpecs: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 100
    end
    object adsDetailBrand: TStringField
      DisplayLabel = #21697#29260
      FieldName = 'Brand'
    end
    object adsDetailColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
    end
    object adsDetailBatchNo: TStringField
      Tag = 2
      DisplayLabel = #25209#21495
      FieldName = 'BatchNo'
    end
    object adsDetailProperties: TStringField
      DisplayLabel = #23646#24615
      FieldName = 'Properties'
    end
    object adsDetailPieceCount: TIntegerField
      DisplayLabel = #20214#25968
      FieldName = 'PieceCount'
    end
    object adsDetailPieceNumber: TBCDField
      DisplayLabel = #27599#20214#25968#37327
      FieldName = 'PieceNumber'
      Precision = 18
      Size = 2
    end
    object adsDetailNumber: TBCDField
      Tag = 2
      Alignment = taLeftJustify
      DisplayLabel = #25968#37327
      FieldName = 'Number'
      Precision = 18
    end
    object adsDetailUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsDetailres_UnitName: TStringField
      DisplayLabel = #21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Lookup = True
    end
    object adsDetailSendNumber: TBCDField
      Alignment = taLeftJustify
      DisplayLabel = #23454#39046#25968#37327
      FieldName = 'SendNumber'
      Precision = 18
      Size = 2
    end
    object adsDetailcal_SubNumber: TFloatField
      Alignment = taLeftJustify
      DisplayLabel = #21097#20313#25968#37327
      FieldKind = fkCalculated
      FieldName = 'cal_SubNumber'
      Calculated = True
    end
    object adsDetailSendStatus: TWordField
      DisplayLabel = #23454#39046#29366#24577
      FieldName = 'SendStatus'
    end
    object adsDetailSendTime: TDateTimeField
      DisplayLabel = #23454#39046#26102#38388
      FieldName = 'SendTime'
    end
    object adsDetailWriter: TStringField
      Tag = 2
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsDetailWriteTime: TDateTimeField
      Tag = 2
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsDetailModifier: TStringField
      Tag = 2
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsDetailModifyTime: TDateTimeField
      Tag = 2
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsDetailRemark: TStringField
      Tag = 2
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 50
    end
  end
  object res_Employee: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    CommandText = 'select EmpID, EmpName from V_da_Employee'
    CommandTimeout = 0
    Parameters = <>
    Left = 160
    Top = 168
  end
  object res_Stock: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    CommandText = 'select StockID, StockName from V_da_Stock'
    Parameters = <>
    Left = 272
    Top = 168
  end
  object res_Department: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      '  select SupplyID as DeptID, SupplyShortName as  DeptName, Suppl' +
      'yFullName as  DeptFullName from V_da_DeptCustSupply'
    Parameters = <>
    Left = 272
    Top = 104
  end
  object res_Unit: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select UnitID, UnitName from V_da_Unit'
    Parameters = <>
    Left = 160
    Top = 104
  end
  object adsBrowseDetail: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    OnCalcFields = adsBrowseDetailCalcFields
    CommandText = 'Select * from sc_DrawDetail where 0=1'
    Parameters = <>
    Left = 272
    Top = 32
    object adsBrowseDetailID: TStringField
      FieldName = 'ID'
    end
    object adsBrowseDetailBillID: TStringField
      Tag = 2
      DisplayLabel = #20851#32852'ID'
      FieldName = 'BillID'
    end
    object adsBrowseDetailBillDetailNo: TStringField
      DisplayLabel = #26126#32454#32534#21495
      FieldName = 'BillDetailNo'
    end
    object adsBrowseDetailSourceBillDetailID: TStringField
      DisplayLabel = #28304#21333#26126#32454'ID'
      FieldName = 'SourceBillDetailID'
    end
    object adsBrowseDetailSourceBillDetailNo: TStringField
      DisplayLabel = #28304#21333#26126#32454#32534#21495
      FieldName = 'SourceBillDetailNo'
    end
    object adsBrowseDetailStuffType: TStringField
      DisplayLabel = #31867#22411
      FieldName = 'StuffType'
    end
    object adsBrowseDetailStuffID: TStringField
      Tag = 2
      DisplayLabel = #29289#26009'ID'
      FieldName = 'StuffID'
    end
    object adsBrowseDetailStuffCode: TStringField
      DisplayLabel = #29289#26009#32534#30721
      FieldName = 'StuffCode'
      Size = 50
    end
    object adsBrowseDetailStuffName: TStringField
      DisplayLabel = #29289#26009#21517#31216
      FieldName = 'StuffName'
      Size = 100
    end
    object adsBrowseDetailSpecs: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 1000
    end
    object adsBrowseDetailBrand: TStringField
      DisplayLabel = #21697#29260
      FieldName = 'Brand'
    end
    object adsBrowseDetailColorName: TStringField
      DisplayLabel = #39068#33394
      FieldName = 'ColorName'
    end
    object adsBrowseDetailBatchNo: TStringField
      Tag = 2
      DisplayLabel = #25209#21495
      FieldName = 'BatchNo'
    end
    object adsBrowseDetailProperties: TStringField
      DisplayLabel = #23646#24615
      FieldName = 'Properties'
    end
    object adsBrowseDetailPieceCount: TIntegerField
      DisplayLabel = #20214#25968
      FieldName = 'PieceCount'
    end
    object adsBrowseDetailPieceNumber: TBCDField
      DisplayLabel = #27599#20214#25968#37327
      FieldName = 'PieceNumber'
      Precision = 18
      Size = 2
    end
    object adsBrowseDetailNumber: TBCDField
      Tag = 2
      Alignment = taLeftJustify
      DisplayLabel = #25968#37327
      FieldName = 'Number'
      Precision = 18
    end
    object adsBrowseDetailUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsBrowseDetailres_UnitName: TStringField
      DisplayLabel = #21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Lookup = True
    end
    object adsBrowseDetailSendNumber: TBCDField
      Alignment = taLeftJustify
      DisplayLabel = #23454#39046#25968#37327
      FieldName = 'SendNumber'
      Precision = 18
      Size = 2
    end
    object adsBrowseDetailcal_SubNumber: TFloatField
      Alignment = taLeftJustify
      DisplayLabel = #21097#20313#25968#37327
      FieldKind = fkCalculated
      FieldName = 'cal_SubNumber'
      Calculated = True
    end
    object adsBrowseDetailSendStatus: TWordField
      DisplayLabel = #23454#39046#29366#24577
      FieldName = 'SendStatus'
    end
    object adsBrowseDetailSendTime: TDateTimeField
      DisplayLabel = #23454#39046#26102#38388
      FieldName = 'SendTime'
    end
    object adsBrowseDetailWriter: TStringField
      Tag = 2
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsBrowseDetailWriteTime: TDateTimeField
      Tag = 2
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsBrowseDetailModifier: TStringField
      Tag = 2
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsBrowseDetailModifyTime: TDateTimeField
      Tag = 2
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsBrowseDetailRemark: TStringField
      Tag = 2
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 50
    end
  end
  object frdsDetail: TfrDBDataSet
    DataSet = adsDetail
    Left = 56
    Top = 304
  end
  object adsDrawUseType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_sc_DrawUseType'
    Parameters = <>
    Left = 384
    Top = 176
  end
  object res_DrawUseType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_sc_DrawUseType'
    Parameters = <>
    Left = 504
    Top = 32
  end
  object res_DrawType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_sc_DrawType'
    Parameters = <>
    Left = 504
    Top = 104
  end
  object res_InOutType: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_da_InOutType'
    Parameters = <>
    Left = 384
    Top = 32
  end
  object res_DrawBillFlow: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Code, Name from V_sc_DrawBillFlow'
    Parameters = <>
    Left = 432
    Top = 240
  end
  object res_StuffProcessType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'Select ID, Name from V_ck_StuffProcessType'
    Parameters = <>
    Left = 272
    Top = 232
  end
  object adsSelect: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    EnableBCD = False
    Parameters = <>
    Left = 160
    Top = 232
  end
  object frdsSelect: TfrDBDataSet
    DataSet = adsSelect
    Left = 56
    Top = 232
  end
  object res_Supply: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'Select SupplyID, SupplyCode, SupplyShortName, SupplyFullName fro' +
      'm V_da_DeptCustSupply'
    Parameters = <>
    Left = 608
    Top = 104
  end
  object adsUserCompany: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.DeptID, b.DeptCode, b.DeptName from xt_CompanySet a '#13#10'j' +
      'oin da_Department b on a.CompanyID=b.DeptID'#13#10'where a.UserID=(sel' +
      'ect UserID from xt_Users where UserCode=:UserCode)'
    Parameters = <
      item
        Name = 'UserCode'
        Size = -1
        Value = Null
      end>
    Left = 384
    Top = 104
  end
end
